package net.xdclass.mq;

import lombok.Data;
import net.xdclass.core.KeyValue;
import net.xdclass.redis.core.stream.AbstractRedisStreamMessage;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class RedisMqSmsSendMessage extends AbstractRedisStreamMessage {
    @NotNull(message = "短信日志编号不能为空")
    private Long logId;
    @NotNull(message = "手机号不能为空")
    private String mobile;
    @NotNull(message = "短信渠道编号不能为空")
    private Long channelId;
    @NotNull(message = "短信API模板编号不能为空")
    private String apiTemplateId;
    private List<KeyValue<String,Object>> templateParams;
}
